/**
 * @Author: 宋计民
 * @Date: 2022/11/3
 * @Version: 1.0
 * @Content: 创建loading 组件
 */

import { ElLoading } from 'element-plus'
import { getPrimaryColor } from '@utils'
import { createLoading as createLoadingService } from '@/components/rtLoading'

export function createLoading(text: string, opt: object = {}) {
  return createLoadingService({
    text,
    lock: true,
    // spinner: 'el-icon-loading',
    // background: 'var(--primary-color-3)',
    ...opt
  })
}
